<%@ page language="java" import="java.util.*,com.mlqsknow.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="/WEB-INF/tlds/messageTag.tld" prefix="msg"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title><msg:message key="menu.error" /></title>

	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="renderer" content="webkit">
	<meta name="description" content="故障">
	<!-- <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0, maximum-scale=1.0"> -->
	<link rel="stylesheet" href="${pageContext.request.contextPath}/css/bootstrap.min.css" />
	<link rel="stylesheet" href="${pageContext.request.contextPath}/css/style.css">
	<!-- 底部加载js -->
	<script src="${pageContext.request.contextPath}/js/jquery-1.12.4.min.js"></script>
	<script type="text/javascript">
	</script>
  </head>
  
  <body>
  <div class="header">
		<div class="left header-logo"><img class="header-logo-img" src="images/header_logo.png" /></div>
		<div class="right header-nav">
			<a class="nav-link" href="${pageContext.request.contextPath }/main.do">
				<i class="icon icon-home"></i>
				<span class="link-text"><msg:message key="menu.homepage" /></span>
			</a>
			<c:if test="${menubean.menu1 }">
			<a class="nav-link" href="${pageContext.request.contextPath }/showDevice.do">
				<i class="icon icon-install"></i>
				<span class="link-text"><msg:message key="menu.install" /></span>
			</a>
			</c:if>
			<c:if test="${menubean.menu2 }">
			<a class="nav-link" href="${pageContext.request.contextPath}/showConfig.do">
				<i class="icon icon-config"></i>
				<span class="link-text"><msg:message key="menu.config" /></span>
			</a>
			</c:if>
			<c:if test="${menubean.menu3 }">
			<!-- <a class="nav-link" href="operation.html">
				<i class="icon icon-operation"></i>
				<span class="link-text">操作</span>
			</a> -->
			<a class="nav-link" href="${pageContext.request.contextPath}/dataNew.do">
				<i class="icon icon-data"></i>
				<span class="link-text"><msg:message key="menu.data" /></span>
			</a>
			</c:if>
			<%-- <c:if test="${menubean.menu4 }">
			<a class="nav-link" href="history.html">
				<i class="icon icon-history"></i>
				<span class="link-text">历史</span>
			</a>
			</c:if> --%>
			<c:if test="${menubean.menu4 }">
			<a class="nav-link active" href="${pageContext.request.contextPath}/faultList.do">
				<i class="icon icon-malfunction"></i>
				<span class="link-text"><msg:message key="menu.error" /></span>
			</a>
			</c:if>
			<c:if test="${menubean.menu5 }">
			<a class="nav-link" href="${pageContext.request.contextPath}/showUserList.do">
				<i class="icon icon-customer-management"></i>
				<span class="link-text"><msg:message key="menu.user" /></span>
			</a>
			</c:if>
			<c:if test="${menubean.menu6 }">
			<a class="nav-link" href="${pageContext.request.contextPath}/statusList.do">
				<i class="icon icon-status"></i>
				<span class="link-text"><msg:message key="menu.status" /></span>
			</a>
			</c:if>
			<c:if test="${menubean.menu7 }">
			<a class="nav-link" href="${pageContext.request.contextPath}/currentList.do">
				<i class="icon icon-malfunction"></i>
				<span class="link-text"><msg:message key="menu.current" /></span>
			</a>
			</c:if>
			<c:if test="${menubean.menu8 }">
			<a class="nav-link" href="${pageContext.request.contextPath}/report.do">
				<i class="icon icon-history"></i>
				<span class="link-text"><msg:message key="menu.report" /></span>
			</a>
			</c:if>
			<a class="nav-link" href="${pageContext.request.contextPath}/logout.do">
				<i class="icon icon-out"></i>
				<span class="link-text"><msg:message key="menu.exit" /></span>
			</a>
			<div class="clear"></div>
		</div>
		<div class="clear"></div>
	</div>

	<div class="section">
		<div class="mui-table page-mainbox">
			<table>
				<thead>
					<tr>
						<th width="60"><msg:message key="fault.icon" /></th>
						<th width="210"><msg:message key="fault.date" /></th>
						<th width="210"><msg:message key="fault.addr" /></th>
						<th width="210"><msg:message key="fault.light" /></th>
						<th><msg:message key="fault.desc" /></th>
						<th width="210"><msg:message key="fault.mobile" /></th>
					</tr>
				</thead>
				<tbody>
					<c:forEach var="status" items="${statusBeanList }">
					<tr>
						<td><div class="td-cont td-center"><img src="images/icon_malfunction_error.png"></div></td>
						<td><div class="td-cont td-center">${status.collectTime }</div></td>
						<td><div class="td-cont td-center">${status.addressName }</div></td>
						<td><div class="td-cont td-center">(${status.addressName })${status.lightNum }</div></td>
						<td><div class="td-cont">${status.statusType }</div></td>
						<td><div class="td-cont td-center">${status.mobile }</div></td>
					</tr>
					</c:forEach>
					<!-- <tr>
						<td><div class="td-cont td-center"><img src="images/icon_malfunction_error.png"></div></td>
						<td><div class="td-cont td-center">19/07/2013</div></td>
						<td><div class="td-cont td-center">azotea_1</div></td>
						<td><div class="td-cont td-center">(azotea_1)ES0000F001M</div></td>
						<td><div class="td-cont">Temperatura electrónica fuera de rango</div></td>
					</tr>
					<tr>
						<td><div class="td-cont td-center"><img src="images/icon_malfunction_info.png"></div></td>
						<td><div class="td-cont td-center">19/07/2013</div></td>
						<td><div class="td-cont td-center">azotea_1</div></td>
						<td><div class="td-cont td-center">(azotea_1)ES0000F001M</div></td>
						<td><div class="td-cont">Temperatura electrónica fuera de rango</div></td>
					</tr>
					<tr>
						<td><div class="td-cont td-center"><img src="images/icon_malfunction_warn.png"></div></td>
						<td><div class="td-cont td-center">19/07/2013</div></td>
						<td><div class="td-cont td-center">azotea_1</div></td>
						<td><div class="td-cont td-center">(azotea_1)ES0000F001M</div></td>
						<td><div class="td-cont">Temperatura electrónica fuera de rango</div></td>
					</tr>
					<tr>
						<td><div class="td-cont td-center"><img src="images/icon_malfunction_set.png"></div></td>
						<td><div class="td-cont td-center">19/07/2013</div></td>
						<td><div class="td-cont td-center">azotea_1</div></td>
						<td><div class="td-cont td-center">(azotea_1)ES0000F001M</div></td>
						<td><div class="td-cont">Temperatura electrónica fuera de rango</div></td>
					</tr> -->
				</tbody>
			</table>
		</div>
		<!-- <div class="mui-operation">
			<a href="javascript:;" class="btn orange-btn">导出</a>
		</div> -->
	</div>
  </body>
</html>
